<!--
 * @Author: ChunLai
 * @Date: 2023-10-20 13:40:40
 * @LastEditTime: 2025-11-18 17:35:50
 * @Description: 智能告知
 * @FilePath: \01.latest-short-insure\src\views\result\share\AutoHealthy.vue
-->
<template>
  <div class="res_bill_page">
    <div class="">
      <img :src="`${imgUrlPath}/icons/${picValue}.png`" alt="" />
    </div>
    <div class="mode1">
      <p v-if="status == '0'">
        <b>智能核保通过！</b> <br />请联系业务员,完成后续投保操作
      </p>
      <p v-else>
        <b class="ftc4">{{ msg }}</b>
      </p>
    </div>
  </div>
</template>

<script>
export default {
  name: "ShareAutoHealthyResult",
  data() {
    return {
      status: "",
      msg: "",
    };
  },
  components: {},
  computed: {
    picValue() {
      let res = "doing";
      if (this.status == "0") {
        res = "success";
      } else if (this.status == "1") {
        res = "error";
      } else {
        res = "doing";
      }
      return res;
    },
  },
  watch: {},
  created() {
    this.$store.commit("updateLoad", false);
    this.getNoticeStatus();
  },
  mounted() {},
  methods: {
    getNoticeStatus() {
      this.$store
        .dispatch("apis/comAdminApiRequest", {
          apiParams: this.apiComParams,
          apiName: "getHealthNoticeResult",
          toast: true,
        })
        .then((data) => {
          this.status = data.noticeResult;
          this.msg = data.msg;
        });
    },
  },
};
</script>

<style lang="less" scoped>
@import "./style.less";
</style>
